import request from '@/utils/request'

// 查询公司荣誉类型列表
export function listHonorType(query) {
  return request({
    url: '/honorType/listByDto',
    method: 'get',
    params: query
  })
}

// 查询公司荣誉类型详细
export function getHonorType(honorTypeId) {
  return request({
    url: '/honorType/findById/' + honorTypeId,
    method: 'get'
  })
}

// 新增公司荣誉类型
export function addHonorType(data) {
  return request({
    url: '/honorType/insert',
    method: 'post',
    data: data
  })
}

// 修改公司荣誉类型
export function updateHonorType(data) {
  return request({
    url: '/honorType/updateById',
    method: 'put',
    data: data
  })
}

// 删除公司荣誉类型
export function delHonorType(honorTypeId) {
  return request({
    url: '/honorType/deleteByIds/' + honorTypeId,
    method: 'delete'
  })
}